#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "imagecapture.h"
#include "imageprocess.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
    void on_actionOpen_triggered();
    void showFrame(QPixmap pixmap);
    void showFrame(cv::Mat frame);
    void showFace(cv::Mat frame);
    void showText(QString txt,quint8 type);

    void on_actionRegistryFromDir_triggered();

    void on_actionExit_triggered();

    void on_actionClose_triggered();

    void on_actionOpenMic_triggered();

private:
    Ui::MainWindow *ui;

    ImageCapture *imageCapture;
    ImageProcess *imageProcess;
    quint8 countFrame;
    Mat filterImage;



    void roiFrame(cv::Mat &frame, quint8 width, quint8 height);
};

#endif // MAINWINDOW_H
